//package com.hudilao.config;
//
//import com.hudilao.properties.StorageProperties;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//import javax.annotation.Resource;
//
///**
// * 本地资源映射配置
// *
// * @author 阿沐 babamu@126.com
// */
//@Configuration
//public class LocalResourceConfiguration implements WebMvcConfigurer {
//    @Value("${lao.path}")
//    private String basePath;
//
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        System.out.println("file://"+basePath);
//        registry.addResourceHandler("/static-resources/**")
//                .addResourceLocations("file:"+basePath);
//        WebMvcConfigurer.super.addResourceHandlers(registry);
//    }
//}
